import Vue from 'vue';
import Vuex from 'vuex';
import index from './modules/index.js';
import ticket from './modules/ticket';
import auth from './modules/auth';
import head from './modules/head';

Vue.use(Vuex);

const store = new Vuex.Store({
    state: {
        hasLogin: false//登录功能未做
    },
    mutations: {
        setLoginStatus(state, hasLogin){
            state.hasLogin = hasLogin;
        },
    },
    actions: {},
    modules: {
        index,
        ticket,
        auth,
        head
    }
});

export default store;